﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="video.aspx.cs" Inherits="GDIT.page.manage.notice.video" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>视频公告</title>
    <link href="../../../css/m_video.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="all">


<!--除了标题，在title里绑定每个数据-->

<ul class="titleList">
    <asp:Repeater ID="VideoRepeater" runat="server">
        <ItemTemplate>
            <li><%#DataBinder.Eval(Container.DataItem, "OID") %><a href="javascript:void(0);" title="<%#DataBinder.Eval(Container.DataItem, "LinkAddress") %>|<%#DataBinder.Eval(Container.DataItem, "Top") %>|<%#DataBinder.Eval(Container.DataItem, "Important") %>" class="title"><%#DataBinder.Eval(Container.DataItem, "VideoName")%></a></li>
        </ItemTemplate>
    </asp:Repeater>
</ul>



<!--弹出层开始-->
<div class="hyaline"></div>

<div class="popup">
    <span class="lblTitle">视频公告短标题：</span>
    <span class="lblAddress">视频链接：</span>
    <asp:TextBox ID="txtName" runat="server" CssClass="title"></asp:TextBox>
    <asp:TextBox ID="txtLink" runat="server" CssClass="address" TextMode="MultiLine"></asp:TextBox>
    <span class="top"><asp:CheckBox ID="chkTop" runat="server" />是否置顶</span>
    <span class="important"><asp:CheckBox ID="chkImportant" runat="server" />是否重点</span>

    <a title="关闭" href="javascript:void(0);" class="close" onclick="ClosePopup();"></a>
    <asp:LinkButton ID="btnSave" runat="server" NavigateUrl="javascript:void(0);" CssClass="save" Title="保存" OnClick="btnSave_Click"></asp:LinkButton>
</div>
<!--弹出层结束-->



<script type="text/javascript">
    function Ready() {
        var aTitles = new Array(); //视频公告标题集合
        var alls = document.getElementsByTagName("*");
        for (var i = 0; i < alls.length; i++) {
            if (alls[i].className == "title") {
                aTitles[aTitles.length] = alls[i];
                alls[i].onclick = title_click;
            }
        }
    }

    Ready();

    function title_click() {
        var hyalineNav; //透明层
        var popupNav; //弹出层
        var alls = document.getElementsByTagName("*");
        for (var i = 0; i < alls.length; i++) {
            if (alls[i].className == "hyaline") {
                hyalineNav = alls[i];
            } else if (alls[i].className == "popup") {
                popupNav = alls[i];
            }
        }
        hyalineNav.style.display = "block";
        popupNav.style.display = "block";
    }

    function OperateTitle(title,i) {
        var titles = new Array();
        titles = title.split("|");
        return titles[i];
    }

    function ClosePopup() {
        var hyalineNav; //透明层
        var popupNav; //弹出层
        var alls = document.getElementsByTagName("*");
        for (var i = 0; i < alls.length; i++) {
            if (alls[i].className == "hyaline") {
                hyalineNav = alls[i];
            } else if (alls[i].className == "popup") {
                popupNav = alls[i];
            }
        }
        hyalineNav.style.display = "none";
        popupNav.style.display = "none";
    }
</script>



</div>
</form>
</body>
</html>
